package com.lzw.breezeNovel.webApp.mapper.video;

import com.lzw.breezeNovel.model.entity.pojo.video.PlayRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.webApp.mapper.video
 * @date 2025/3/19
 * @description
 */

@Mapper
@SuppressWarnings("all")
public interface PlayRecordMapper {

    /**
     * 根据用户id和视频id查询播放记录
     * @param playRecord
     * @return
     */
    PlayRecord selectByUserIdAndVideoId( PlayRecord playRecord);

    /**
     * 更新播放记录
     * @param playRecord
     */
    void updateById(PlayRecord playRecord);

    /**
     * 插入播放记录
     * @param playRecord
     */
    void insert(PlayRecord playRecord);
}
